﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.ComponentModel;

namespace UIModel.Mongo
{
    public class SaleDtlMongo
    {

        /// <summary>
        /// 主键ID(mongo专用)
        /// </summary>
        public ObjectId _id { get; set; }

        /// <summary>
        /// 企业编号
        /// </summary>
        [Description("企业编号")]
        public string CpnID { get; set; }

        /// <summary>
        /// 机构编号
        /// </summary>
        [Description("机构编号")]
        public string OrgID { get; set; }

        /// <summary>
        /// 卡号
        /// </summary>
        [Description("卡号")]
        public string CrdNo { get; set; }
        /// <summary>
        /// pos机号
        /// </summary>
        [Description("pos机号")]
        public string posid { get; set; }
        /// <summary>
        /// 收银机号
        /// </summary>
        [Description("收银机号")]
        public string receid { get; set; }

        /// <summary>
        /// 单据号
        /// </summary>
        [Description("单据号")]
        public string SrcBllNo { get; set; }

        /// <summary>
        /// 单据类型
        /// </summary>
        [Description("单据类型")]
        public string BllTypeID { get; set; }

        /// <summary>
        /// 消费日期
        /// </summary>
        [Description("消费日期")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime SalDt { get; set; }

        /// <summary>
        /// 消费时间
        /// </summary>
        [Description("消费时间")]
        public string SalTm { get; set; }

        /// <summary>
        /// 商品编码
        /// </summary>
        [Description("商品编码")]
        public string GdsID { get; set; }
        /// <summary>
        /// 销售类型(1:零售价 2:会员价 3:特价 4:折扣 5:会员特价 6:会员折扣)
        /// </summary>
        [Description("销售类型(1:零售价 2:会员价 3:特价 4:折扣 5:会员特价 6:会员折扣)")]
        public int? SllTyp { get; set; }

        /// <summary>
        /// 消费数量
        /// </summary>
        [Description("消费数量")]
        public int Qty { get; set; }

        /// <summary>
        /// 消费金额
        /// </summary>
        [Description("消费金额")]
        public Int64 ConsAmt { get; set; }

        /// <summary>
        /// 消费折扣
        /// </summary>
        [Description("消费折扣")]
        public Int64 DiscAmt { get; set; }

        /// <summary>
        /// 商品成本价
        /// </summary>
        [Description("商品成本价")]
        public Int64 CstPrc { get; set; }

        /// <summary>
        /// 商品毛利
        /// </summary>
        [Description("商品毛利")]
        public Int64 CstMpro { get; set; }
        /// <summary>
        /// 积分
        /// </summary>
        [Description("积分")]
        public Int64 IntgAmt { get; set; }
        /// <summary>
        /// 分类
        /// </summary>
        [Description("分类")]
        public string ClsID { get; set; }
        /// <summary>
        /// 品牌
        /// </summary>
        [Description("品牌")]
        public string BndID { get; set; }

        /// <summary>
        /// 商户号
        /// </summary>
        [Description("商户号")]
        public string PrvID { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        [Description("更新时间")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime UptDtt { get; set; }

        public int dz { get; set; }
       
        public int Age { get; set; }

    }
}
